package com.gohi.filter;


import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter;

public class DefaultFilter extends StrutsPrepareAndExecuteFilter {

	@Override
	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain filterChain) throws IOException, ServletException {
//		HttpServletRequest req = (HttpServletRequest)request;
//		String url = req.getRequestURL().toString();
//		if(url!=null && url.indexOf("do")>-1 || url.indexOf("jsp")>-1 || url.indexOf("htm")>-1){
//			System.err.println("请求地址："+url);
//		}
		super.doFilter(request, response, filterChain);
	}

}
